package org.javaboy.cors01.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @PutMapping("/hello")
//    @CrossOrigin(origins = "http://localhost:8081")
    public String hello() {
        return "hello";
    }
}
